<?php

namespace app\admin\model;

use app\common\model\TimeModel;

class Chiap extends TimeModel
{

    protected $name = "chiap";

    protected $deleteTime = "delete_time";

    
    public function chiapCompany()
    {
        return $this->belongsTo('\app\admin\model\ChiapCompany', 'chiap_company_id', 'id');
    }

    
    public function getChiapCompanyList()
    {
        return \app\admin\model\ChiapCompany::column('title', 'id');
    }
    public function getStatusList()
    {
        return ['1'=>'开启','2'=>'关闭',];
    }

    public function getTypeList()
    {
        return ['1'=>'现货','2'=>'期货',];
    }


}